package hcn.protocol.brandnew.zhenliao.yaopin;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;


/**
 * 获取药房药品信息-响应消息（成功） - ODS_03020014_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class SyncDrugInformationResponse {

    /**
     * 总条数
     */
    @XmlElement(name = "CountsMsg")
    private CountsMsg countsMsg;
    /**
     * 药品信息
     */
    @XmlElementWrapper(name = "DrugLists")
    @XmlElement(name = "DrugList")
    private List<DrugList> drugLists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class CountsMsg {

        /**
         * 总条数
         */
        @XmlElement(name = "Total")
        private Long total;
    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class DrugList {

        /**
         * 就诊机构代码/开单机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;
        /**
         * 外延标志
         */
        @XmlElement(name = "EpitaxialSign")
        private Byte epitaxialSign;
        /**
         * 药房编码
         */
        @XmlElement(name = "PharmacyId")
        private String pharmacyId;
        /**
         * 药物代码
         */
        @XmlElement(name = "DrugsNumber")
        private String drugsNumber;
        /**
         * 药物名称
         */
        @XmlElement(name = "DrugName")
        private String drugName;
        /**
         * 药品编码
         */
        @XmlElement(name = "DrugCode")
        private String drugCode;
        /**
         * 药品通用编码(上传监管平台使用)
         */
        @XmlElement(name = "ApprDrugCode")
        private String apprDrugCode;
        /**
         * 药品通用名称(上传监管平台使用)
         */
        @XmlElement(name = "ApprDrugName")
        private String apprDrugName;
        /**
         * 药品产地id
         */
        @XmlElement(name = "DrugProductionPlaceId")
        private String drugProductionPlaceId;
        /**
         * 药品医保等级
         */
        @XmlElement(name = "DrugGrade")
        private Byte drugGrade;
        /**
         * 药品-药房单位
         */
        @XmlElement(name = "DrugstoreUnit")
        private String drugstoreUnit;
        /**
         * 药品-药品产地
         */
        @XmlElement(name = "DrugProductionPlace")
        private String drugProductionPlace;
        /**
         * 药物规格
         */
        @XmlElement(name = "DrugSpecifications")
        private String drugSpecifications;
        /**
         * 药品单价
         */
        @XmlElement(name = "DrugUnitPrice")
        private String drugUnitPrice;
        /**
         * 药品-药房包装
         */
        @XmlElement(name = "DrugstorePacking")
        private Integer drugstorePacking;
        /**
         * 一次剂量
         */
        @XmlElement(name = "OnceDosage")
        private String onceDosage;
        /**
         * 剂量单位
         */
        @XmlElement(name = "DosageUnit")
        private String dosageUnit;
        /**
         * 药物使用途径代码
         */
        @XmlElement(name = "DrugUsePathwaysCode")
        private String drugUsePathwaysCode;
        /**
         * 药品用法名称
         */
        @XmlElement(name = "DrugUsePathwaysName")
        private String drugUsePathwaysName;
        /**
         * 药品库存数量
         */
        @XmlElement(name = "DrugAmount")
        private Long drugAmount;
        /**
         * 默认一次计量
         */
        @XmlElement(name = "DefaultOnceDosage")
        private String defaultOnceDosage;
        /**
         * 平台公共药品id
         */
        @XmlElement(name = "PublicDrugsNumber")
        private String publicDrugsNumber;
        /**
         * 平台公共药品名称
         */
        @XmlElement(name = "PublicDrugsName")
        private String publicDrugsName;
        /**
         * 药品权限
         */
        @XmlElement(name = "DrugAuthority")
        private String drugAuthority;
    }

}
